package com.zh.note.huawei.onehundred.拼接url;

import java.util.Scanner;

/**
 * @Author: zhanghuan
 * @date: 2023/8/31 13:50
 * @description: create it
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.nextLine();
        if (input.isEmpty()) {
            System.out.println("/");
            return;
        }
        String[] split = input.split(",");
        String str = "";
        if (split.length >= 2) {
            str = split[0] + "/" + split[1];
        } else if (split.length == 1) {
            str = split[0] + "/";
        } else {
            str = "/";

        }
        String url = str.replaceAll("/+", "/");
        System.out.println(url);

    }
}
